package com.wyl.pmd.rule.design;

import com.wyl.pmd.model.SomeException;

public class ExceptionAsFlowControl {

	public void bar() {
	    try {
	        try {
	        } catch (Exception e) {
	        	String errorCode = "biz_error"; 
	        	String message = "业务错误";
	            throw new SomeException(errorCode, message, e);
	            // 掩盖了其它类型可能发生的错误
	        }
	    } catch (SomeException e) {
	        // do some more stuff
	    }
	}
	
}
